// AstarDoc.cpp : implementation of the CAstarDoc class
//

#include "stdafx.h"
#include "Astar.h"

#include "AstarDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CAstarDoc

IMPLEMENT_DYNCREATE(CAstarDoc, CDocument)

BEGIN_MESSAGE_MAP(CAstarDoc, CDocument)
END_MESSAGE_MAP()


// CAstarDoc construction/destruction

CAstarDoc::CAstarDoc()
{
	// TODO: add one-time construction code here

}

CAstarDoc::~CAstarDoc()
{
}

BOOL CAstarDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}




// CAstarDoc serialization

void CAstarDoc::Serialize(CArchive& ar)
{
	POSITION pos = GetFirstViewPosition();
	CAstarView* pView = reinterpret_cast<CAstarView*>(GetNextView(pos));
	if (NULL != pView)
	{
		pView->Serialize(ar);
	}
}


// CAstarDoc diagnostics

#ifdef _DEBUG
void CAstarDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CAstarDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG


// CAstarDoc commands
